home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Chat & Communication
/
Digsby build 37
/
digsby_setup.exe
/
lib
/
PIL
/
TarIO.pyo
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2008-10-13
|
979b
|
33 lines
# Source Generated with Decompyle++
# File: in.pyo (Python 2.5)
import ContainerIO
import string
class TarIO(ContainerIO.ContainerIO):
def __init__(self, tarfile, file):
fh = open(tarfile, 'rb')
while None:
s = fh.read(512)
if len(s) != 512:
raise IOError, 'unexpected end of tar file'
name = s[:100]
i = string.find(name, chr(0))
if i == 0:
raise IOError, 'cannot find subfile'
if i > 0:
name = name[:i]
size = string.atoi(s[124:136], 8)
if file == name:
break
continue
ContainerIO.ContainerIO.__init__(self, fh, fh.tell(), size)
return None